Format

Function

This API is used to set parameter for Storage > Disk page.

Request Message

Parameter Description

Table 1

ParameterRangeTypeDescription
base_secondary_authenticationJson ObjectFor details of encrypted authentication, please refer to the table in the Syntax file under the Request pubkey or randbyte in the Login directory
hdd_idint arrayDisk serial number
hdd_format_typeAllHddData
OnlyHddRecord
OnlyHddData
stringHard disk format type
/* Format the entire hard disk /
/
Format only the video partition /
/
Format only the general partition*/

Sample:

POST /API/StorageConfig/Disk/Format HTTP/1.1
{
    "version": "1.0",
    "data": {
        "base_secondary_authentication": {
            "cipher": "oz+j5ICkAxtNjnxGInpxkOLHvsep6Fm5gruG6F0/PCE=",
            "seq": 1
        },
        "hdd_format_type": "AllHddData",
        "hdd_id": [
            1
        ]
    }
}

Response Message

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
	"result": "success",
	"data": {}
}

Error Code

See Response Messages Body and Common error_code for more information.